package com.itheima.mArray;

import java.util.Scanner;

/*
   评委打分
 */
public class ArrayDemo03 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] arr = new int[6];
        int sum = 0;
        for (int i = 0; i < arr.length; i++) {
            System.out.println("请第" + (i + 1) + "位评委打分:");
            arr[i] = sc.nextInt();
            sum += arr[i];
        }
        int ave = (int) (sum / 6);
        System.out.println("均分为:" + ave);
    }
}
